package com.lc.smd.controller.data;


import com.lc.smd.entity.local.TestTable;
import com.lc.smd.entity.muke.GenDatasource;
import com.lc.smd.service.local.TestTableService;
import com.lc.smd.service.muke.GenDatasourceService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description: some desc
 * @author: LChuang
 * @date: 2023/9/6 14:11
 */
@RestController
@RequestMapping("/data/module")
@RequiredArgsConstructor
public class DataModuleController {

    private final GenDatasourceService datasourceService;

    private final TestTableService testTableService;


    @GetMapping("/list")
    private List<GenDatasource> list(){
        return datasourceService.list();
    }

    @GetMapping("/listTestTable")
    private List<TestTable> listTestTable(){
        return testTableService.list();
    }

}
